package com.mark.repository;

import com.mark.entity.OrderMaster;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by Choisaaaa on 2018/6/21.
 * 订单数据交互接口
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster,String> {

    //1.根据买家微信ID分页查找订单列表
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid,Pageable pageable);
}
